<?php
if(!defined('DCS_ROOT')) {exit('Access Denied');} 

class setting {

	function __construct() {		
		$this->url = getUrl();
		$action = $this->url['action'];
		require_once(APP_PATH."model/admin/init.php" );
		if($action == 'setting'){
			$this->defaultAction();
			exit();
		}else{
			error('system error.');
			exit();
		}
	}

	function defaultAction(){
		$tpl = new Template("admin/main/setting.htm" );		
		$username = $_SESSION['adminuser'];
		$tpl->assign("username", $username);	
		$tpl->assign($globalVar);		
		$tpl->output();
	}
	


}
?>
